//
//  PurchaseTestAppDelegate.m
//  PurchaseTest
//
//  Created by fanshao on 09-10-16.
//  Copyright Sensky 2009. All rights reserved.
//

#import "PurchaseTestAppDelegate.h"
#import "PurchaseTestViewController.h"

@implementation PurchaseTestAppDelegate

@synthesize window;
@synthesize viewController;
@synthesize observer;

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    
    // Override point for customization after app launch    
    [window addSubview:viewController.view];
    [window makeKeyAndVisible];
	MyStoreObserver *tempObserver = [[MyStoreObserver alloc] init];
	self.observer = tempObserver;
	[tempObserver release];
	[[SKPaymentQueue defaultQueue] addTransactionObserver:self.observer];
	

}



- (void)dealloc {
	[observer release];
    [viewController release];
    [window release];
    [super dealloc];
}


@end
